<template>
	<view class="">
		
		<pcVue class="pc"></pcVue>
		<phoneVue  class="phone"></phoneVue>
		
		
		<u-button type="primary" @click="login">登录</u-button>
		
		
		<!-- <text>{{ $t('common.welcome') }}</text>
		<button @click="switchLanguage">中日切换</button>
		<u-button type="primary" text="确定"></u-button> -->
	</view>
</template>

<script>
	import pcVue from './pc.vue';
	import phoneVue from './phone.vue';
export default {
	components:{
		pcVue,phoneVue
	},
	data() {
		return {

		}
	},
	onLoad() {

	},
	methods: {
		switchLanguage() {
			this.$i18n.locale = this.$i18n.locale === 'zh' ? 'ja' : 'zh';// 切换中日文
			uni.setStorageSync('language', this.$i18n.locale);// 可以保存到本地存储
		},
		login(){
			uni.navigateTo({
				url:"/pages/index/index"
			})
		}
	}
}
</script>

<style lang="scss" scoped>
	
	
</style>
